package com.learn.springcloud.eurekahaprovider.controller;

import org.apache.catalina.User;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/7/23 20:03
 * @Version : 1.0
 * @Author : hongyan.li@hand-china.com
 * Copyright @ 2000 Shanghai Hand Co. Ltd.
 * All right reserved.
 */
@RestController
public class PutProvider {


    @PutMapping(value = "/provider/put/service/example1")
    public void putExample1(@RequestBody User user){
        System.out.println(user);
        System.out.println("provider put service");
    }

    @PutMapping(value = "/provider/put/service/example11")
    public void putExample11(@RequestBody User user,String anything){
        System.out.println(anything);
        System.out.println(user);
        System.out.println("provider put service");
    }

}
